﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>合作网站登录 - {config.webname}</title>
<meta content="{config.webkeyword}" name="keywords" />
<meta content="{config.webdescription}" name="description" />
<link media="screen" type="text/css" href="<%templateskin%>/css/style.css" rel="stylesheet">
<link rel="stylesheet" href="{config.webpath}css/validate.css" />
<script type="text/javascript" src="{config.webpath}scripts/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="{config.webpath}scripts/jquery/jquery.form.min.js"></script>
<script type="text/javascript" src="{config.webpath}scripts/jquery/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="{config.webpath}scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
<script type="text/javascript" src="<%templateskin%>/js/base.js"></script>
<script type="text/javascript">
	$(function(){
		tabs('#oauthTabs','click');
		//初始化表单1
		AjaxInitForm('bind_form', 'btnSubmit1', 0, 'turl');
		//初始化表单2
		AjaxInitForm('oauth_form', 'btnSubmit2', 0, 'turl');
	});
</script>
</head>

<body>
<!--Header-->
<%template src="_header.html"%>
<!--/Header-->

<div class="boxwrap">
  <div class="main_box">
    <h1 class="main_tit">
      合作网站登录<strong>OAuth Login</strong>
    </h1>

    <div id="oauthTabs" class="oauth_box">
      <div id="tab_head">
        <ul class="tabs">
          <li><a class="current" href="javascript:;">绑定已有的账号</a></li>
          <li><a href="javascript:;">创建新的账号</a></li>
        </ul>
      </div>
      <div class="line10"></div>
      <div class="tab_inner entry" style="display:block;">
        <div class="form_box">
          <form name="bind_form" id="bind_form" url="{config.webpath}tools/submit_ajax.ashx?action=user_oauth_bind">
          <dl>
            <dt>用户名：</dt>
            <dd><input name="txtUserName" type="text" class="input txt wide" datatype="*"  nullmsg="请输入用户名" sucmsg=" " /></dd>
          </dl>
          <dl>
            <dt>密　码：</dt>
            <dd><input name="txtPassword" type="password" class="input txt wide" datatype="*6-20"  nullmsg="请输入密码" sucmsg=" " /></dd>
          </dl>
          <dl>
            <dt></dt>
            <dd><input id="btnSubmit1" name="btnSubmit1" type="submit" class="btn_submit" value="立即绑定" /></dd>
          </dl>
          </form>
        </div>
      </div>
      <div class="tab_inner">
        <div class="form_box">
          <form name="oauth_form" id="oauth_form" url="{config.webpath}tools/submit_ajax.ashx?action=user_oauth_register">
          <dl>
            <dt>电子邮箱：</dt>
            <dd><input name="txtEmail" type="text" class="input txt wide" datatype="e"  nullmsg="请输入邮箱地址" sucmsg=" " /></dd>
          </dl>
          <dl>
            <dt>手机号码：</dt>
            <dd><input name="txtMobile" type="text" class="input txt wide" datatype="m"  nullmsg="请输入手机号码" sucmsg=" " /></dd>
          </dl>
          <dl>
            <dt>登录密码：</dt>
            <dd><input name="txtPassword" type="password" class="input txt wide required" datatype="*6-20"  nullmsg="请设置密码" sucmsg=" " /></dd>
          </dl>
          <dl>
            <dt></dt>
            <dd><input id="btnSubmit2" name="btnSubmit1" type="submit" class="btn_submit" value="创建新账户" /></dd>
          </dl>
          </form>
        </div>
        <input id="turl" name="turl" type="hidden" value="{turl}" />
      </div>
      
    </div>

    <div class="clear"></div>
  </div>
</div>

<div class="clear"></div>

<!--Footer-->
<%template src="_footer.html"%>
<!--/Footer-->
</body>
</html>
